<template>
  <button @click="add">按钮</button>
  <p>{{  count  }}</p>
</template>

<script>
import { useAdd } from './index.js'
// .vue .js .css
export default {
  setup () {
    const { count, add } = useAdd()
    return {
      count,
      add
    }
  }
}
</script>
